<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单列表 - 甜品店堂食点餐系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://unpkg.com/tdesign-mobile-vue/dist/tdesign.min.css" />
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #f0f2f5;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
        .order-item {
            transition: transform 0.2s;
        }
        .order-item:active {
            transform: scale(0.98);
        }
        .tab-active {
            color: #FF4081;
            border-bottom: 2px solid #FF4081;
        }
    </style>
</head>
<body>
    <div class="flex flex-col h-full">
        <!-- 顶部导航栏 -->
        <div class="bg-white px-4 py-3 flex items-center justify-center shadow-sm">
            <h1 class="text-lg font-medium">我的订单</h1>
        </div>

        <!-- 订单状态标签 -->
        <div class="bg-white flex border-b border-gray-200">
            <button class="flex-1 py-3 text-center text-sm font-medium tab-active">全部</button>
            <button class="flex-1 py-3 text-center text-sm font-medium text-gray-600">待支付</button>
            <button class="flex-1 py-3 text-center text-sm font-medium text-gray-600">已支付</button>
            <button class="flex-1 py-3 text-center text-sm font-medium text-gray-600">已取消</button>
        </div>

        <!-- 订单列表 -->
        <div class="flex-1 overflow-y-auto p-4 space-y-4">
            <!-- 已支付订单 -->
            <a href="order-detail.html" class="order-item block bg-white rounded-xl shadow-sm overflow-hidden">
                <div class="p-4 border-b border-gray-100">
                    <div class="flex justify-between items-center mb-2">
                        <div class="text-gray-800 font-medium">订单号：20230806A5X9P2</div>
                        <div class="text-green-500 font-medium">已支付</div>
                    </div>
                    <div class="flex justify-between text-sm">
                        <div class="text-gray-500">2023-08-06 14:30</div>
                        <div class="text-gray-500">桌号：A03</div>
                    </div>
                </div>
                <div class="p-4">
                    <div class="flex items-center mb-3">
                        <div class="flex-shrink-0 w-10 h-10 bg-gray-100 rounded-lg overflow-hidden mr-3">
                            <img src="https://images.unsplash.com/photo-1587314168485-3236d6710814?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="提拉米苏" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <div class="flex justify-between">
                                <div class="text-gray-800">经典提拉米苏</div>
                                <div class="text-gray-600">×1</div>
                            </div>
                        </div>
                    </div>
                    <div class="flex items-center">
                        <div class="flex-shrink-0 w-10 h-10 bg-gray-100 rounded-lg overflow-hidden mr-3">
                            <img src="https://images.unsplash.com/photo-1501443762994-82bd5dace89a?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="芒果冰沙" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <div class="flex justify-between">
                                <div class="text-gray-800">芒果冰沙</div>
                                <div class="text-gray-600">×2</div>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-between items-center mt-3 pt-3 border-t border-gray-100">
                        <div class="text-sm text-gray-500">共3件商品</div>
                        <div>
                            <span class="text-gray-600 mr-1">实付：</span>
                            <span class="text-pink-600 font-bold">¥98.00</span>
                        </div>
                    </div>
                </div>
            </a>

            <!-- 待支付订单 -->
            <a href="order-detail.html" class="order-item block bg-white rounded-xl shadow-sm overflow-hidden">
                <div class="p-4 border-b border-gray-100">
                    <div class="flex justify-between items-center mb-2">
                        <div class="text-gray-800 font-medium">订单号：20230806B7X3P5</div>
                        <div class="text-yellow-500 font-medium">待支付</div>
                    </div>
                    <div class="flex justify-between text-sm">
                        <div class="text-gray-500">2023-08-06 15:45</div>
                        <div class="text-gray-500">桌号：A05</div>
                    </div>
                </div>
                <div class="p-4">
                    <div class="flex items-center mb-3">
                        <div class="flex-shrink-0 w-10 h-10 bg-gray-100 rounded-lg overflow-hidden mr-3">
                            <img src="https://images.unsplash.com/photo-1565958011703-44f9829ba187?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="草莓奶油蛋糕" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <div class="flex justify-between">
                                <div class="text-gray-800">草莓奶油蛋糕</div>
                                <div class="text-gray-600">×1</div>
                            </div>
                        </div>
                    </div>
                    <div class="flex items-center">
                        <div class="flex-shrink-0 w-10 h-10 bg-gray-100 rounded-lg overflow-hidden mr-3">
                            <img src="https://images.unsplash.com/photo-1515823662972-da6a2e4d3002?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="抹茶拿铁" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <div class="flex justify-between">
                                <div class="text-gray-800">抹茶拿铁</div>
                                <div class="text-gray-600">×1</div>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-between items-center mt-3 pt-3 border-t border-gray-100">
                        <div class="text-sm text-gray-500">共2件商品</div>
                        <div>
                            <span class="text-gray-600 mr-1">应付：</span>
                            <span class="text-pink-600 font-bold">¥70.00</span>
                        </div>
                    </div>
                </div>
                <div class="flex p-3 bg-gray-50 border-t border-gray-100">
                    <div class="flex-1"></div>
                    <button class="px-4 py-1.5 border border-gray-300 text-gray-600 rounded-full text-sm mr-3">
                        取消订单
                    </button>
                    <button class="px-4 py-1.5 bg-pink-500 text-white rounded-full text-sm">
                        去支付
                    </button>
                </div>
            </a>

            <!-- 已取消订单 -->
            <a href="order-detail.html" class="order-item block bg-white rounded-xl shadow-sm overflow-hidden">
                <div class="p-4 border-b border-gray-100">
                    <div class="flex justify-between items-center mb-2">
                        <div class="text-gray-800 font-medium">订单号：20230805C2X7P1</div>
                        <div class="text-gray-500 font-medium">已取消</div>
                    </div>
                    <div class="flex justify-between text-sm">
                        <div class="text-gray-500">2023-08-05 18:20</div>
                        <div class="text-gray-500">桌号：B02</div>
                    </div>
                </div>
                <div class="p-4">
                    <div class="flex items-center">
                        <div class="flex-shrink-0 w-10 h-10 bg-gray-100 rounded-lg overflow-hidden mr-3">
                            <img src="https://images.unsplash.com/photo-1511381939415-e44015466834?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="巧克力慕斯" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <div class="flex justify-between">
                                <div class="text-gray-800">巧克力慕斯</div>
                                <div class="text-gray-600">×2</div>
                            </div>
                        </div>
                    </div>
                    <div class="flex justify-between items-center mt-3 pt-3 border-t border-gray-100">
                        <div class="text-sm text-gray-500">共2件商品</div>
                        <div>
                            <span class="text-gray-600 mr-1">金额：</span>
                            <span class="text-gray-600">¥90.00</span>
                        </div>
                    </div>
                </div>
                <div class="flex p-3 bg-gray-50 border-t border-gray-100">
                    <div class="flex-1"></div>
                    <button class="px-4 py-1.5 border border-pink-500 text-pink-500 rounded-full text-sm">
                        再来一单
                    </button>
                </div>
            </a>
        </div>

        <!-- 底部导航 -->
        <div class="bg-white border-t border-gray-200 flex justify-around py-2">
            <a href="scan.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path>
                </svg>
                <span class="text-xs mt-1 text-gray-500">首页</span>
            </a>
            <a href="menu.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"></path>
                </svg>
                <span class="text-xs mt-1 text-gray-500">菜单</span>
            </a>
            <a href="cart.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                </svg>
                <span class="text-xs mt-1 text-gray-500">购物车</span>
            </a>
            <a href="orders.html" class="flex flex-col items-center p-2">
                <svg class="w-6 h-6 text-pink-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path>
                </svg>
                <span class="text-xs mt-1 text-pink-500 font-medium">我的</span>
            </a>
        </div>
    </div>
</body>
</html>